<template>
  <div class="container" v-if="title">
    <div class="logo">
      <img src="../../assets/login/logo.png" alt=""/>
    </div>
    <div class="title-box">
      <div class="company">{{title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
    props: {
      title: {
        type: String,
        default: ""
      }
    },
  }
</script>

<style lang="scss" scoped>
  .container {
    display: flex;
    padding-left: 100px;
    height: 80px;
    position: relative;

    .logo {
      display: inline-block;

      img {
        width: 70px;
        height: 70px;
      }
    }

    .title-box {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0px 30px 3px 30px;
      z-index: 10;

      .company {
        font-size: 40px;
        font-weight: 500;
        color: #ffffff;
      }

      .company-zh {
        font-size: 14px;
        font-weight: 400;
        color: #ffffff;
        letter-spacing: 0.2em;
      }
    }
  }
</style>
